package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class MedicalPolicy {
    private int medicalpolicy_id;
    private String title;
    private String message;
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private City city;

    public MedicalPolicy() {
    }

    public MedicalPolicy(int medicalpolicy_id, String title, String message, LocalDateTime createtime, LocalDateTime updatetime, City city) {
        this.medicalpolicy_id = medicalpolicy_id;
        this.title = title;
        this.message = message;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.city = city;
    }

    public int getMedicalpolicy_id() {
        return medicalpolicy_id;
    }

    public void setMedicalpolicy_id(int medicalpolicy_id) {
        this.medicalpolicy_id = medicalpolicy_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "MedicalPolicy{" +
                "medicalpolicy_id=" + medicalpolicy_id +
                ", title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", city=" + city +
                '}';
    }
}
